/******************************************************
 ** Purpose: This is the start of the main application
 ** running sequence. 
 **
 **
 ******************************************************/
#include "TestGame.h"
#include <crtdbg.h>
#define WIN32_LEAN_AND_MEAN

//Definition of the Main Loop
int WINAPI WinMain( HINSTANCE	hInstance, 
					HINSTANCE	hPrevhInstance,
					LPSTR		pCmdLine,
					int			nShowCmd)
{

	// Enable run-time memory check for debug builds
	#if defined(DEBUG) | defined(_DEBUG)
		_CrtSetDbgFlag( _CRTDBG_ALLOC_MEM_DF | _CRTDBG_LEAK_CHECK_DF );
	#endif

	TestGame game	= TestGame(hInstance, nShowCmd, D3DDEVTYPE_HAL, D3DCREATE_HARDWARE_VERTEXPROCESSING);
	g_pD3DApp		= &game;

	return g_pD3DApp->Run();
}